Add Core Web Vitals distribution histogram to tech report#1241
Draft
alonkochba wants to merge 1 commit intoHTTPArchive:mainfrom
Draft
Add Core Web Vitals distribution histogram to tech report#1241alonkochba wants to merge 1 commit intoHTTPArchive:mainfrom
alonkochba wants to merge 1 commit intoHTTPArchive:mainfrom
Conversation
8d85b23 to
9d68f1b
Compare
Adds a collapsible histogram chart to the CWV section showing how origins are distributed across performance buckets for LCP, CLS, INP, FCP, and TTFB. Features: - Column chart with bars color-coded green/orange/red by CWV thresholds - Dashed plotlines marking good/needs-improvement boundaries - Tail buckets aggregated into an overflow "X+" bar so all origins are shown - Metric selector in the collapsed summary bar for quick switching - Loading spinner while the API call is in progress - Error message when data is unavailable - Light and dark mode support with theme-aware colors - Anchor link (#section-cwv_distribution) with auto-expand on direct navigation - URL hash updates when the section is expanded Fetches data from /v1/cwv-distribution (HTTPArchive/tech-report-apis#105) with technology, date, rank, and geo parameters. Also scopes the global .highcharts-point CSS rule to line/spline series only, so column chart bar colors are not overridden. Closes HTTPArchive#1147
9d68f1b to
d6cdb0b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a "Show distribution" button to the Core Web Vitals timeseries card that reveals a histogram of how origins are distributed across performance buckets. Also refactors the existing "Show table" and "Show geographic breakdown" into a unified button bar for a more compact, power-user-focused UI.
Show table,Show geographic breakdown,Show distribution) appear inline below the CWV timeseries chart/v1/cwv-distributionwithtechnology,date,rank, andgeoparamsAlso scopes the global
.highcharts-pointCSS rule to line/spline series only, so column chart bar colors render correctly.Depends on
/v1/cwv-distributionBigQuery endpointTest plan
/reports/techreport/tech?tech=Wix#section-cwv_distributionor#section-geo_breakdown— corresponding panel auto-opensCloses #1147